//
//  MapLayer.h
//  cocos2dFirstTest
//
//  Created by Daniel Alexander on 6/20/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"


@interface MapLayer : CCLayer {
    CGFloat screenWidth;
    CGFloat screenHeight;
    char map[50][90]; //90 = width;
    CCSprite *tiles[90*50];
    int totalTiles;
    NSMutableDictionary *Legend;
    CCSprite *tileWall;
    CCSprite *tileFloor;
    CCSprite *playerSprite;
    BOOL _maploaded;
    NSDictionary *theParty;
    NSString * _myPlayer;
    CCLabelTTF *debugLabel;
    BOOL partyUpdated;
    NSInteger partySize;
    NSMutableDictionary *partyLegend;
}
-(void)SetMap:(NSMutableDictionary*)newMap;
-(void)fill_floor_rec:(NSInteger)x yvalue:(NSInteger) y target:(char) target replacement:(char)replacement;
-(void)ChangeView:(NSInteger)x yvalue:(NSInteger)y;
-(BOOL)IsMapLoaded;
-(void)UpdateParty:(NSDictionary*)party;
-(void)SetMyPlayer:(NSString*)playerName;
@end
